#include "view_others_device_info.h"
#include "display_ctrl.h"
#include "platform_assert.h"
#include "lfs_file_manager_auto.h"
#include "rtc.h"
#include "datetime.h"
#include "blecom.h"
#include "battery_ctrl.h"
#include "sport_his.h"
#include "display_ctrl.h"
#include "display_interface_240x240.h"
#include "datetime.h"
#include "heart_rate_interface.h"
#include "font/num_font.h"
#include "view_common.h"
#include "prj_config.h"
#include "device_type.h"
const unsigned char img_device_info_a[] = {
    /* 数组大小：221 颜色数：16 图片：E405-a.bmp*/
    0x0c, 0x00, 0x16, 0x00, 0x10, 0x00, 0x00, 0x00, 0xdf, 0xff, 0x9a, 0xd6, 0xcb, 0x5a, 0x9e, 0xf7, 0xd3, 0x9c, 0xd7, 0xbd, 0x51, 0x8c, 0x5d, 0xef, 0x08, 0x42, 0x55, 0xad, 0xdb, 0xde, 0xcf, 0x7b,
    0x4d, 0x6b, 0x04, 0x21, 0x18, 0xc6, 0x00, 0x84, 0x01, 0x81, 0x02, 0x00, 0x87, 0x03, 0x01, 0x81, 0x04, 0x00, 0x87, 0x05, 0x01, 0x82, 0x03, 0x00, 0x86, 0x06, 0x01, 0x82, 0x07, 0x00, 0x86, 0x08,
    0x01, 0x08, 0x01, 0x06, 0x00, 0x85, 0x09, 0x01, 0x81, 0x0a, 0x01, 0x0b, 0x00, 0x85, 0x0c, 0x01, 0x04, 0x0d, 0x01, 0x81, 0x0e, 0x00, 0x84, 0x0a, 0x01, 0x02, 0x00, 0x01, 0x81, 0x0c, 0x00, 0x84,
    0x02, 0x01, 0x0a, 0x00, 0x0b, 0x01, 0x05, 0x00, 0x84, 0x01, 0x81, 0x07, 0x00, 0x0f, 0x01, 0x02, 0x00, 0x83, 0x0d, 0x01, 0x81, 0x03, 0x00, 0x05, 0x01, 0x81, 0x00, 0x83, 0x05, 0x01, 0x81, 0x00,
    0x81, 0x0d, 0x01, 0x81, 0x03, 0x00, 0x82, 0x0f, 0x01, 0x02, 0x00, 0x81, 0x0e, 0x01, 0x81, 0x05, 0x00, 0x82, 0x04, 0x01, 0x0a, 0x00, 0x82, 0x04, 0x01, 0x06, 0x00, 0x81, 0x09, 0x01, 0x81, 0x06,
    0x0d, 0x82, 0x0b, 0x01, 0x08, 0x00, 0x81, 0x07, 0x01, 0x88, 0x09, 0x00, 0x06, 0x01, 0x88, 0x0c, 0x00, 0x0b, 0x01, 0x02, 0x00, 0x83, 0x0e, 0x01, 0x81, 0x0a, 0x0e, 0x01, 0x81, 0x0a, 0x00, 0x84,
    0x08, 0x01, 0x02, 0x0d, 0x01, 0x81, 0x07, 0x00, 0x84, 0x0f, 0x01, 0x81, 0x05, 0x01, 0x81, 0x03, 0x00, 0x84, 0x05, 0x01, 0x81, 0x02, 0x01, 0x81, 0x00, 0x85, 0x0d, 0x01, 0x81,
};

const unsigned char img_device_info_b[] = {
    /* 数组大小：244 颜色数：13 图片：E406-b.bmp*/
    0x0c, 0x00, 0x16, 0x00, 0x0d, 0x00, 0xdf, 0xff, 0x9e, 0xf7, 0x18, 0xc6, 0x4d, 0x6b, 0x00, 0x00, 0x51, 0x8c, 0xd7, 0xbd, 0x55, 0xad, 0xd3, 0x9c, 0xcb, 0x5a, 0x08, 0x42, 0x9a, 0xd6, 0x04,
    0x21, 0x00, 0x84, 0x01, 0x02, 0x03, 0x04, 0x83, 0x00, 0x87, 0x05, 0x04, 0x82, 0x00, 0x81, 0x06, 0x03, 0x81, 0x07, 0x00, 0x81, 0x01, 0x04, 0x82, 0x00, 0x81, 0x08, 0x04, 0x82, 0x07, 0x00,
    0x81, 0x03, 0x04, 0x81, 0x00, 0x81, 0x08, 0x04, 0x82, 0x03, 0x00, 0x81, 0x08, 0x04, 0x81, 0x00, 0x81, 0x08, 0x04, 0x82, 0x09, 0x00, 0x81, 0x08, 0x04, 0x81, 0x00, 0x81, 0x08, 0x04, 0x82,
    0x09, 0x00, 0x81, 0x08, 0x04, 0x81, 0x00, 0x81, 0x08, 0x04, 0x82, 0x03, 0x00, 0x81, 0x05, 0x04, 0x81, 0x00, 0x81, 0x08, 0x04, 0x82, 0x07, 0x00, 0x81, 0x0a, 0x04, 0x81, 0x00, 0x81, 0x06,
    0x03, 0x81, 0x08, 0x00, 0x81, 0x0b, 0x04, 0x82, 0x00, 0x86, 0x02, 0x0c, 0x04, 0x82, 0x00, 0x86, 0x01, 0x09, 0x04, 0x82, 0x00, 0x81, 0x08, 0x04, 0x81, 0x03, 0x01, 0x00, 0x01, 0x0c, 0x04,
    0x81, 0x00, 0x81, 0x08, 0x04, 0x82, 0x05, 0x00, 0x81, 0x05, 0x04, 0x81, 0x00, 0x81, 0x08, 0x04, 0x82, 0x0c, 0x00, 0x81, 0x08, 0x04, 0x81, 0x00, 0x81, 0x08, 0x04, 0x83, 0x00, 0x81, 0x08,
    0x04, 0x81, 0x00, 0x81, 0x08, 0x04, 0x83, 0x00, 0x81, 0x08, 0x04, 0x81, 0x00, 0x81, 0x08, 0x04, 0x82, 0x0c, 0x00, 0x81, 0x08, 0x04, 0x81, 0x00, 0x81, 0x08, 0x04, 0x82, 0x08, 0x00, 0x81,
    0x05, 0x04, 0x81, 0x00, 0x81, 0x06, 0x03, 0x81, 0x08, 0x01, 0x00, 0x81, 0x0c, 0x04, 0x81, 0x00, 0x87, 0x05, 0x04, 0x82, 0x00, 0x84, 0x01, 0x02, 0x03, 0x04, 0x83,
};

const unsigned char img_device_info_c[] = {
    /* 数组大小：204 颜色数：13 图片：E407-c.bmp*/
    0x0c, 0x00, 0x16, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x04, 0x21, 0xd3, 0x9c, 0xdb, 0xde, 0xdf, 0xff, 0x9e, 0xf7, 0xd7, 0xbd, 0x08, 0x42, 0xcb, 0x5a, 0x4d, 0x6b, 0x51, 0x8c, 0xcf, 0x7b,
    0x5d, 0xef, 0x00, 0x81, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x00, 0x83, 0x01, 0x03, 0x04, 0x84, 0x05, 0x08, 0x00, 0x82, 0x06, 0x04, 0x81, 0x06, 0x09, 0x02, 0x05, 0x04, 0x03,
    0x00, 0x82, 0x04, 0x81, 0x06, 0x00, 0x82, 0x0a, 0x04, 0x81, 0x08, 0x00, 0x09, 0x04, 0x81, 0x0b, 0x00, 0x82, 0x07, 0x04, 0x81, 0x0a, 0x00, 0x09, 0x04, 0x81, 0x08, 0x00, 0x83, 0x02,
    0x81, 0x09, 0x00, 0x02, 0x04, 0x81, 0x00, 0x88, 0x02, 0x04, 0x81, 0x00, 0x88, 0x02, 0x04, 0x81, 0x00, 0x88, 0x02, 0x04, 0x81, 0x00, 0x88, 0x02, 0x04, 0x81, 0x00, 0x88, 0x02, 0x04,
    0x81, 0x00, 0x88, 0x02, 0x04, 0x81, 0x00, 0x88, 0x02, 0x04, 0x81, 0x00, 0x88, 0x02, 0x04, 0x81, 0x00, 0x88, 0x02, 0x04, 0x81, 0x00, 0x88, 0x09, 0x04, 0x81, 0x08, 0x00, 0x83, 0x02,
    0x81, 0x09, 0x00, 0x09, 0x04, 0x81, 0x0b, 0x00, 0x82, 0x01, 0x04, 0x81, 0x02, 0x00, 0x81, 0x04, 0x81, 0x06, 0x00, 0x82, 0x02, 0x04, 0x81, 0x08, 0x00, 0x81, 0x06, 0x04, 0x81, 0x06,
    0x09, 0x02, 0x05, 0x04, 0x0c, 0x00, 0x82, 0x01, 0x03, 0x04, 0x84, 0x05, 0x08, 0x00, 0x83, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x08, 0x00, 0x82,
};

const unsigned char img_device_info_d[] = {
    /* 数组大小：246 颜色数：15 图片：E408-d.bmp*/
    0x0c, 0x00, 0x16, 0x00, 0x0f, 0x00, 0xdf, 0xff, 0x9e, 0xf7, 0x18, 0xc6, 0xcf, 0x7b, 0x00, 0x00, 0x55, 0xad, 0xd7, 0xbd, 0x4d, 0x6b, 0x51, 0x8c, 0x5d, 0xef, 0xcb, 0x5a, 0xd3, 0x9c, 0x08,
    0x42, 0xdb, 0xde, 0x9a, 0xd6, 0x00, 0x84, 0x01, 0x02, 0x03, 0x04, 0x83, 0x00, 0x87, 0x05, 0x04, 0x82, 0x00, 0x81, 0x06, 0x07, 0x81, 0x08, 0x09, 0x00, 0x81, 0x0a, 0x04, 0x81, 0x00, 0x81,
    0x0b, 0x04, 0x82, 0x0c, 0x00, 0x81, 0x05, 0x04, 0x81, 0x00, 0x81, 0x0b, 0x04, 0x83, 0x0d, 0x00, 0x0e, 0x04, 0x81, 0x00, 0x81, 0x0b, 0x04, 0x83, 0x06, 0x00, 0x0d, 0x04, 0x81, 0x00, 0x81,
    0x0b, 0x04, 0x83, 0x0b, 0x00, 0x81, 0x04, 0x81, 0x00, 0x81, 0x0b, 0x04, 0x83, 0x0b, 0x00, 0x81, 0x04, 0x81, 0x00, 0x81, 0x0b, 0x04, 0x83, 0x0b, 0x00, 0x81, 0x04, 0x81, 0x00, 0x81, 0x0b,
    0x04, 0x83, 0x0b, 0x00, 0x81, 0x04, 0x81, 0x00, 0x81, 0x0b, 0x04, 0x83, 0x0b, 0x00, 0x81, 0x04, 0x81, 0x00, 0x81, 0x0b, 0x04, 0x83, 0x0b, 0x00, 0x81, 0x04, 0x81, 0x00, 0x81, 0x0b, 0x04,
    0x83, 0x0b, 0x00, 0x81, 0x04, 0x81, 0x00, 0x81, 0x0b, 0x04, 0x83, 0x0b, 0x00, 0x81, 0x04, 0x81, 0x00, 0x81, 0x0b, 0x04, 0x83, 0x0b, 0x00, 0x81, 0x04, 0x81, 0x00, 0x81, 0x0b, 0x04, 0x83,
    0x0b, 0x00, 0x81, 0x04, 0x81, 0x00, 0x81, 0x0b, 0x04, 0x83, 0x06, 0x00, 0x0d, 0x04, 0x81, 0x00, 0x81, 0x0b, 0x04, 0x83, 0x0d, 0x00, 0x0e, 0x04, 0x81, 0x00, 0x81, 0x0b, 0x04, 0x82, 0x0c,
    0x00, 0x81, 0x05, 0x04, 0x81, 0x00, 0x81, 0x06, 0x07, 0x81, 0x08, 0x09, 0x00, 0x81, 0x0a, 0x04, 0x81, 0x00, 0x87, 0x05, 0x04, 0x82, 0x00, 0x84, 0x01, 0x02, 0x03, 0x04, 0x83,
};

const unsigned char img_device_info_e[] = {
    /* 数组大小：137 颜色数：6 图片：E409-e.bmp*/
    0x0c, 0x00, 0x16, 0x00, 0x06, 0x00, 0xdf, 0xff, 0x4d, 0x6b, 0x00, 0x00, 0xd7, 0xbd, 0x04, 0x21, 0xd3, 0x9c, 0x00, 0x87, 0x01, 0x02, 0x82, 0x00, 0x87, 0x01, 0x02, 0x82,
    0x00, 0x81, 0x03, 0x01, 0x84, 0x04, 0x02, 0x82, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88,
    0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x86, 0x01, 0x02, 0x83, 0x00, 0x86, 0x01, 0x02, 0x83, 0x00, 0x81, 0x03,
    0x01, 0x83, 0x04, 0x02, 0x83, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05,
    0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x03, 0x01, 0x84, 0x04, 0x02, 0x82, 0x00, 0x87, 0x01, 0x02, 0x82, 0x00, 0x87, 0x01, 0x02, 0x82,
};

const unsigned char img_device_info_f[] = {
    /* 数组大小：134 颜色数：6 图片：E410-f.bmp*/
    0x0c, 0x00, 0x16, 0x00, 0x06, 0x00, 0xdf, 0xff, 0x4d, 0x6b, 0x00, 0x00, 0xd7, 0xbd, 0x04, 0x21, 0xd3, 0x9c, 0x00, 0x87, 0x01, 0x02, 0x82, 0x00, 0x87, 0x01, 0x02,
    0x82, 0x00, 0x81, 0x03, 0x01, 0x84, 0x04, 0x02, 0x82, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05,
    0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x86, 0x01, 0x02, 0x83, 0x00, 0x86, 0x01, 0x02, 0x83,
    0x00, 0x81, 0x03, 0x01, 0x83, 0x04, 0x02, 0x83, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02,
    0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88, 0x00, 0x81, 0x05, 0x02, 0x88,
};
const unsigned char *const img_device_info_TAB[] = {
    img_device_info_a, img_device_info_b, img_device_info_c, img_device_info_d, img_device_info_e, img_device_info_f,
};
const unsigned char img_device_info_v[] = {
    /* 数组大小：237 颜色数：16 图片：E411-v.bmp*/
    0x0c, 0x00, 0x16, 0x00, 0x10, 0x00, 0xdb, 0xde, 0xdf, 0xff, 0x00, 0x00, 0x9e, 0xf7, 0x55, 0xad, 0x4d, 0x6b, 0x04, 0x21, 0x18, 0xc6, 0x51, 0x8c, 0xd3, 0x9c, 0xcb, 0x5a, 0x9a, 0xd6,
    0xd7, 0xbd, 0x5d, 0xef, 0xcf, 0x7b, 0x08, 0x42, 0x00, 0x01, 0x81, 0x02, 0x85, 0x03, 0x01, 0x03, 0x04, 0x01, 0x81, 0x05, 0x02, 0x83, 0x06, 0x01, 0x81, 0x07, 0x08, 0x01, 0x81, 0x08,
    0x02, 0x83, 0x05, 0x01, 0x81, 0x09, 0x0a, 0x01, 0x81, 0x04, 0x02, 0x83, 0x09, 0x01, 0x81, 0x05, 0x02, 0x03, 0x01, 0x0b, 0x02, 0x83, 0x0c, 0x01, 0x81, 0x06, 0x02, 0x0b, 0x01, 0x03,
    0x02, 0x83, 0x0b, 0x01, 0x0d, 0x02, 0x81, 0x09, 0x01, 0x81, 0x06, 0x02, 0x82, 0x01, 0x81, 0x0c, 0x02, 0x81, 0x0e, 0x01, 0x81, 0x05, 0x02, 0x81, 0x0f, 0x01, 0x81, 0x09, 0x02, 0x81,
    0x0f, 0x01, 0x81, 0x09, 0x02, 0x81, 0x0e, 0x01, 0x81, 0x05, 0x02, 0x82, 0x0d, 0x01, 0x0c, 0x02, 0x81, 0x09, 0x01, 0x81, 0x02, 0x83, 0x07, 0x01, 0x0b, 0x02, 0x81, 0x07, 0x01, 0x00,
    0x02, 0x83, 0x09, 0x01, 0x81, 0x02, 0x81, 0x00, 0x01, 0x04, 0x02, 0x83, 0x05, 0x01, 0x81, 0x0a, 0x02, 0x01, 0x81, 0x08, 0x02, 0x83, 0x06, 0x01, 0x81, 0x0e, 0x05, 0x01, 0x81, 0x0a,
    0x02, 0x84, 0x00, 0x01, 0x09, 0x08, 0x01, 0x81, 0x02, 0x85, 0x0c, 0x01, 0x07, 0x09, 0x01, 0x0b, 0x02, 0x85, 0x09, 0x01, 0x00, 0x0b, 0x01, 0x09, 0x02, 0x85, 0x05, 0x01, 0x81, 0x03,
    0x01, 0x0e, 0x02, 0x86, 0x01, 0x83, 0x0f, 0x02, 0x86, 0x0b, 0x01, 0x81, 0x03, 0x02, 0x87, 0x04, 0x01, 0x81, 0x07, 0x02, 0x87, 0x08, 0x01, 0x81, 0x09, 0x02, 0x83,
};

const unsigned char img_device_info_r[] = {
    /* 数组大小：248 颜色数：15 图片：E412-r.bmp*/
    0x0c, 0x00, 0x16, 0x00, 0x0f, 0x00, 0xdf, 0xff, 0x9e, 0xf7, 0x18, 0xc6, 0x4d, 0x6b, 0x00, 0x00, 0xcf, 0x7b, 0xd7, 0xbd, 0x51, 0x8c, 0x5d, 0xef, 0xd3, 0x9c, 0xcb, 0x5a, 0x08, 0x42, 0xdb,
    0xde, 0x04, 0x21, 0x55, 0xad, 0x00, 0x84, 0x01, 0x02, 0x03, 0x04, 0x83, 0x00, 0x87, 0x05, 0x04, 0x82, 0x00, 0x81, 0x06, 0x03, 0x81, 0x07, 0x01, 0x00, 0x08, 0x04, 0x82, 0x00, 0x81, 0x09,
    0x04, 0x82, 0x09, 0x00, 0x81, 0x0a, 0x04, 0x81, 0x00, 0x81, 0x09, 0x04, 0x82, 0x0b, 0x00, 0x81, 0x07, 0x04, 0x81, 0x00, 0x81, 0x09, 0x04, 0x83, 0x00, 0x81, 0x09, 0x04, 0x81, 0x00, 0x81,
    0x09, 0x04, 0x83, 0x00, 0x81, 0x09, 0x04, 0x81, 0x00, 0x81, 0x09, 0x04, 0x83, 0x00, 0x81, 0x09, 0x04, 0x81, 0x00, 0x81, 0x09, 0x04, 0x82, 0x0b, 0x00, 0x81, 0x07, 0x04, 0x81, 0x00, 0x81,
    0x09, 0x04, 0x82, 0x07, 0x00, 0x81, 0x0a, 0x04, 0x81, 0x00, 0x81, 0x06, 0x03, 0x81, 0x07, 0x01, 0x00, 0x08, 0x04, 0x82, 0x00, 0x87, 0x03, 0x04, 0x82, 0x00, 0x86, 0x05, 0x04, 0x83, 0x00,
    0x81, 0x09, 0x04, 0x0b, 0x00, 0x81, 0x07, 0x04, 0x83, 0x00, 0x81, 0x09, 0x04, 0x81, 0x0c, 0x00, 0x02, 0x04, 0x83, 0x00, 0x81, 0x09, 0x04, 0x81, 0x09, 0x00, 0x81, 0x0d, 0x04, 0x82, 0x00,
    0x81, 0x09, 0x04, 0x81, 0x0a, 0x00, 0x81, 0x07, 0x04, 0x82, 0x00, 0x81, 0x09, 0x04, 0x82, 0x08, 0x00, 0x02, 0x04, 0x82, 0x00, 0x81, 0x09, 0x04, 0x82, 0x0e, 0x00, 0x81, 0x0d, 0x04, 0x81,
    0x00, 0x81, 0x09, 0x04, 0x82, 0x0a, 0x00, 0x81, 0x07, 0x04, 0x81, 0x00, 0x81, 0x09, 0x04, 0x83, 0x01, 0x00, 0x02, 0x04, 0x81, 0x00, 0x81, 0x09, 0x04, 0x83, 0x06, 0x00, 0x81, 0x0d, 0x04,
};

const unsigned char img_device_info_under_line[] = {
    /* 数组大小：19 颜色数：3 图片：E413-bar.bmp*/
    0x07, 0x00, 0x16, 0x00, 0x03, 0x00, 0x00, 0x00, 0x4d, 0x6b, 0xdf, 0xff, 0x00, 0xff, 0x85, 0x01, 0x86, 0x02, 0x8d,
};

const unsigned char img_device_info_two_point[] = {
    /* 数组大小：18 颜色数：2 图片：E414-second.bmp*/
    0x03, 0x00, 0x16, 0x00, 0x02, 0x00, 0x00, 0x00, 0xdf, 0xff, 0x00, 0x9a, 0x01, 0x88, 0x00, 0x94, 0x01, 0x88,
};

const unsigned char img_device_info_point[] = {
    /* 数组大小：14 颜色数：2 图片：E415-point.bmp*/
    0x03, 0x00, 0x16, 0x00, 0x02, 0x00, 0x00, 0x00, 0xdf, 0xff, 0x00, 0xb8, 0x01, 0x88,
};

const unsigned char img_device_info_slash[] = {
    /* 数组大小：156 颜色数：16 图片：E416-line.bmp*/
    0x08, 0x00, 0x16, 0x00, 0x10, 0x00, 0x00, 0x00, 0x9a, 0xd6, 0xdf, 0xff, 0xd7, 0xbd, 0x51, 0x8c, 0xcb, 0x5a, 0xd3, 0x9c, 0x9e, 0xf7, 0x5d, 0xef, 0x04, 0x21, 0xcf, 0x7b, 0x4d, 0x6b, 0xdb, 0xde,
    0x55, 0xad, 0x08, 0x42, 0x18, 0xc6, 0x00, 0x84, 0x01, 0x02, 0x03, 0x00, 0x84, 0x02, 0x81, 0x04, 0x00, 0x83, 0x05, 0x02, 0x81, 0x05, 0x00, 0x83, 0x06, 0x02, 0x07, 0x00, 0x84, 0x03, 0x02, 0x01,
    0x00, 0x84, 0x08, 0x02, 0x06, 0x00, 0x83, 0x09, 0x02, 0x81, 0x0a, 0x00, 0x83, 0x0b, 0x02, 0x81, 0x09, 0x00, 0x83, 0x06, 0x02, 0x08, 0x00, 0x84, 0x01, 0x02, 0x03, 0x00, 0x84, 0x07, 0x02, 0x06,
    0x00, 0x83, 0x05, 0x02, 0x81, 0x0b, 0x00, 0x83, 0x04, 0x02, 0x81, 0x00, 0x84, 0x03, 0x02, 0x01, 0x00, 0x84, 0x0c, 0x02, 0x0d, 0x00, 0x84, 0x02, 0x81, 0x0a, 0x00, 0x83, 0x0b, 0x02, 0x81, 0x0e,
    0x00, 0x83, 0x06, 0x02, 0x08, 0x00, 0x84, 0x0f, 0x02, 0x0f, 0x00, 0x84, 0x07, 0x02, 0x06, 0x00, 0x83, 0x0e, 0x02, 0x81, 0x0b, 0x00, 0x83, 0x0a, 0x02, 0x81, 0x00, 0x84,
};

void view_others_device_info_display(void)
{
    int x = 59;
    int y = 42;
    if (disp_ctrl.loop_cnt == 0)
    {
        disp_ctrl.com_data.i_temp[0] = battery_ctrl_get_percent();
        disp_ctrl.com_data.i_temp[1] = battery_ctrl_if_charging();
        // disp_ctrl.com_data.i_temp[0] = 67;
        // disp_ctrl.com_data.i_temp[1] = 1;
    }
    uint8_t battery_level = battery_ctrl_get_level(disp_ctrl.com_data.i_temp[0]);
    if (disp_ctrl.com_data.i_temp[1])
    {
        disp_ctrl.auto_refresh_time = 500;
        // if (battery_level == 0)
        // {
        //     battery_level = disp_ctrl.auto_refresh_count % 2;
        // }
        // else if (battery_level < 4) //充电格
        // {
        //     battery_level = disp_ctrl.auto_refresh_count % (battery_level + 1) + 1;
        // }
        battery_level = disp_ctrl.auto_refresh_count % 5;
        _disp_show_flash_img(DISP_LFS_FILE_INDEX_0, x, y, FILE_IMG_9301_electricity_100_65_36 + 4 - battery_level);
    }
    else
    {
        disp_ctrl.auto_refresh_time = 5000;
        _disp_show_flash_img(DISP_LFS_FILE_INDEX_0, x, y, FILE_IMG_9301_electricity_100_65_36 + 4 - battery_level);
    }
    x = 86;
    y = 115;
    x = 4 + disp_draw_user_image_num(x, y, disp_ctrl.com_data.i_temp[0], 18, num_N300_dig_14x32_TAB);
    disp_draw_user_image(x, y, num_N310_percentage_19x32);

    char buffer[20] = {0};
    uint16_t len = 16;
    memset(buffer, 0, sizeof(buffer));
    sd_ble_gap_device_name_get((uint8_t *)buffer, &len);
    // disp_show_font_string_utf8_mid(183, buffer, 0);
    disp_show_user_string_middle(0, 240, 165, buffer, num_hex_12x28_get_bmp);

    show_button_up();
    show_button_right();
    show_button_down();
}
// static uint8_t const *get_img(char c)
//{
//    uint8_t const *p_img = 0;
//    if ((c >= '0') && (c <= '9'))
//    {
//        p_img = num_N200_dig_12x24_TAB[c - '0'];
//    }
//    else if ((c >= 'A') && (c <= 'F'))
//    {
//        p_img = img_device_info_TAB[c - 'A'];
//    }
//    else if (c == '_') //'_'
//    {
//        p_img = img_device_info_under_line;
//    }
//    else if (c == 'V') //'_'
//    {
//        p_img = img_device_info_v;
//    }
//    else if (c == '.') //'_'
//    {
//        p_img = img_device_info_point;
//    }
//    else if (c == ':') //'_'
//    {
//        p_img = img_device_info_two_point;
//    }
//    // else if (c == 'G') //'_'
//    // {
//    //     p_img = IMAGE_USER_NUM17X19_G;
//    // }
//    else if (c == 'R')
//    {
//        p_img = img_device_info_r;
//    }
//    else //不支持
//    {
//        p_img = 0;
//    }
//    return p_img;
//}

// void disp_show_user_string_middle(uint8_t start_x, int width, uint8_t start_y, char *p_string)
//{
//    int const string_len = strlen(p_string);
//    int const interval = 3;
//    uint8_t const *p_img = 0;
//    int draw_width = 0;
//    for (int i = 0; i < string_len; i++)
//    {
//        p_img = get_img(p_string[i]);
//        if (p_img)
//        {
//            draw_width += p_img[0] + (p_img[1] << 8) + interval;
//        }
//    }
//    draw_width -= interval;
//    int draw_x = start_x + (width - draw_width) / 2;
//    if (draw_x < start_x)
//    {
//        draw_x = start_x;
//    }

//    for (int i = 0; i < string_len; i++)
//    {
//        p_img = get_img(p_string[i]);
//        if (p_img)
//        {
//            disp_draw_user_image(draw_x, start_y, p_img);
//            draw_x += p_img[0] + (p_img[1] << 8) + interval;
//        }
//    }
//}

void view_others_device_info_detail_display(void)
{
    // uint8_t y_offset = 0;
    if (disp_ctrl.loop_cnt == 0)
    {
        disp_ctrl.auto_close_delay = 10000;
        memset(&disp_ctrl.com_data.uint8_temp[100], 0, 64);
        get_show_device_name(&disp_ctrl.com_data.uint8_temp[100], 32);
    }

    uint8_t hardware[32] = {0};
    uint8_t firmware[32] = {0};
    // // uint32_t device_name_len = get_show_device_name(hardware, sizeof(hardware));
    // strcpy((char *)hardware, DEVICE_PREFIX);
    strcpy((char *)hardware, (char *)&disp_ctrl.com_data.uint8_temp[100]);
    // memcpy(firmware, hardware, strlen((char const *)hardware));
    sprintf((char *)hardware, "%s_V%s", hardware, HARDWARE_VERSION);
    sprintf((char *)firmware, "%s_%s", FIRMWARE_VERSION, FW_STRING_DATE);
//硬件版本号
#define DEVICE_MAC_HW_START_Y (50)
    disp_show_user_string_middle(0, 240, DEVICE_MAC_HW_START_Y, (char *)hardware, num_hex_12x28_get_bmp);

//固件版本号
#define DEVICE_MAC_FW_START_Y (107)
    disp_show_user_string_middle(0, 240, DEVICE_MAC_FW_START_Y, (char *)firmware, num_hex_12x28_get_bmp);

//蓝牙地址
#define DEVICE_MAC_MAC_START_Y (165)
    char buffer[32] = {0};
    memset(buffer, 0, sizeof(buffer));
    ble_gap_addr_t p_addr;
    sd_ble_gap_address_get(&p_addr);
    sprintf(buffer, "%1X%1X:%1X%1X:%1X%1X:%1X%1X:%1X%1X:%1X%1X", p_addr.addr[5] >> 4, p_addr.addr[5] & 0xf, p_addr.addr[4] >> 4, p_addr.addr[4] & 0xf, p_addr.addr[3] >> 4, p_addr.addr[3] & 0xf,
            p_addr.addr[2] >> 4, p_addr.addr[2] & 0xf, p_addr.addr[1] >> 4, p_addr.addr[1] & 0xf, p_addr.addr[0] >> 4, p_addr.addr[0] & 0xf);

    disp_show_user_string_middle(0, 240, DEVICE_MAC_MAC_START_Y, buffer, num_hex_9x19_get_bmp); //总长度7+16+14=37*6-7=215
}
